﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using  HNQXYJ.DAL;
using  HNQXYJ.BLL;

namespace HNQXYJ.HN_DATA
{
    public partial class zhengZhouTongJI : System.Web.UI.Page
    {

        public  static int erQiQuAll ;
        static int erQiQuOnline;
        static int erQiQuOffline;

        static int huiJiQuAll;
        static int huiJiQuOnline;
        static int huiJiQuOffline;

        static int zhongMuAll;
        static int zhongMuOnline;
        static int zhongMuOffline;

        static int xinZhengAll;
        static int xinZhengOnline;
        static int xinZhengOffline;

        static int xingYangAll;
        static int xingYangOnline;
        static int xingYangOffline;

        static int xinMiAll;
        static int xinMiOnline;
        static int xinMiOffline;

        static int dengFengAll;
        static int dengFengOnline;
        static int dengFengOffline;

        static int gongYiAll;
        static int gongYiOnline;
        static int gongYiOffline;

      
        //public string returnValue = "[{name: '任务单数量',data: [370.0,162.0,13,13,370.0,162.0,13,13]}, {name: '计划工时（小时）',data: [120,23,25,2,370.0,162.0,13,13]}, {name: '实际人数',data: [60,43,65,20,30.0,12.0,13,103]}, {name: '实际工时（小时）',data: [89,57,114,26,32,52.0,43,63]}]";
        //public string xAxisCategories = "['IT中心部门', '创前万博考试', '电大服务中心', '考试服务中心','财务部','学生服务中心','职教中心','总经办']";

        public string returnValue;// = "[{name: '终端总数量',data:[" + erQiQuAll + "," + huiJiQuAll + "," + zhongMuAll + "," + xinZhengAll + "," + xingYangAll + "," + xinMiAll + "," + dengFengAll + "," + gongYiAll + "]},{name: '在线数量',data: [" + erQiQuOnline + "," + huiJiQuOnline + "," + zhongMuOnline + "," + xinZhengOnline + "," + xingYangOnline + "," + xinMiOnline + "," + dengFengOnline + "," + gongYiOnline + "]}, {name: '离线数量',data: [" + erQiQuOffline + "," + huiJiQuOffline + "," + zhongMuOffline + "," + xinZhengOffline + "," + xingYangOffline + "," + xinMiOffline + "," + dengFengOffline + "," + gongYiOffline + "]}]";
        //public string returnValue = "[{name: '终端总数量',data:[" + erQiQuAll + "," + huiJiQuAll + "," + zhongMuAll + "," + xinZhengAll + "," + xingYangAll + "," + xinMiAll + "," + dengFengAll + "," + gongYiAll + "]},{name: '在线数量',data: [" + erQiQuOnline + "," + huiJiQuOnline + "," + zhongMuOnline + "," + xinZhengOnline + "," + xingYangOnline + "," + xinMiOnline + "," + dengFengOnline + "," + gongYiOnline + "]}, {name: '离线数量',data: [" + erQiQuOffline + "," + huiJiQuOffline + "," + zhongMuOffline + "," + xinZhengOffline + "," + xingYangOffline + "," + xinMiOffline + "," + dengFengOffline + "," + gongYiOffline + "]}]";
        //public string xAxisCategories = "['二七区', '惠济区', '中牟', '新郑','荥阳','新密','登封','巩义']";
        public string xAxisCategories;// = "['二七区', '惠济区', '中牟', '新郑','荥阳','新密','登封','巩义']";
        protected void Page_Load(object sender, EventArgs e)
        {
            erQiQuAll = TerminalBLL.GetNumberALLByRankLevel("zhengzhoushierqiqu", "0");
            erQiQuOnline = TerminalDAL.GetNumberByStatusAndCounty("在线", "zhengzhoushierqiqu","0");
            erQiQuOffline = TerminalDAL.GetNumberByStatusAndCounty("离线", "zhengzhoushierqiqu","0");

            huiJiQuAll = TerminalBLL.GetNumberALLByRankLevel("zhengzhoushihuijiqu", "0");
            huiJiQuOnline = TerminalDAL.GetNumberByStatusAndCounty("在线", "zhengzhoushihuijiqu","0");
            huiJiQuOffline = TerminalDAL.GetNumberByStatusAndCounty("离线", "zhengzhoushihuijiqu", "0");

            zhongMuAll = TerminalBLL.GetNumberALLByRankLevel("zhengzhoushizhongmuxian", "0");
            zhongMuOnline = TerminalDAL.GetNumberByStatusAndCounty("在线", "zhengzhoushizhongmuxian", "0");
            zhongMuOffline = TerminalDAL.GetNumberByStatusAndCounty("离线", "zhengzhoushizhongmuxian", "0");

            xinZhengAll = TerminalBLL.GetNumberALLByRankLevel("zhengzhoushixinzhengshi", "0");
            xinZhengOnline = TerminalDAL.GetNumberByStatusAndCounty("在线", "zhengzhoushixinzhengshi", "0");
            xinZhengOffline = TerminalDAL.GetNumberByStatusAndCounty("离线", "zhengzhoushixinzhengshi", "0");


            xingYangAll = TerminalBLL.GetNumberALLByRankLevel("zhengzhoushixingyangshi", "0");
            xingYangOnline = TerminalDAL.GetNumberByStatusAndCounty("在线", "zhengzhoushixingyangshi", "0");
            xingYangOffline = TerminalDAL.GetNumberByStatusAndCounty("离线", "zhengzhoushixingyangshi", "0");

            xinMiAll = TerminalBLL.GetNumberALLByRankLevel("zhengzhoushixinmishi", "0");
            xinMiOnline = TerminalDAL.GetNumberByStatusAndCounty("在线", "zhengzhoushixinmishi", "0");
            xinMiOffline = TerminalDAL.GetNumberByStatusAndCounty("离线", "zhengzhoushixinmishi", "0");

            dengFengAll = TerminalBLL.GetNumberALLByRankLevel("zhengzhoushidengfengshi", "0");
            dengFengOnline = TerminalDAL.GetNumberByStatusAndCounty("在线", "zhengzhoushidengfengshi", "0");
            dengFengOffline = TerminalDAL.GetNumberByStatusAndCounty("离线", "zhengzhoushidengfengshi", "0");

            gongYiAll = TerminalBLL.GetNumberALLByRankLevel("zhengzhoushigongyishi", "0");
            gongYiOnline = TerminalDAL.GetNumberByStatusAndCounty("在线", "zhengzhoushigongyishi", "0");
            gongYiOffline = TerminalDAL.GetNumberByStatusAndCounty("离线", "zhengzhoushigongyishi", "0");

            returnValue = "[{name: '终端总数量',data:[" + erQiQuAll + "," + huiJiQuAll + "," + zhongMuAll + "," + xinZhengAll + "," + xingYangAll + "," + xinMiAll + "," + dengFengAll + "," + gongYiAll + "]},{name: '在线数量',data: [" + erQiQuOnline + "," + huiJiQuOnline + "," + zhongMuOnline + "," + xinZhengOnline + "," + xingYangOnline + "," + xinMiOnline + "," + dengFengOnline + "," + gongYiOnline + "]}, {name: '离线数量',data: [" + erQiQuOffline + "," + huiJiQuOffline + "," + zhongMuOffline + "," + xinZhengOffline + "," + xingYangOffline + "," + xinMiOffline + "," + dengFengOffline + "," + gongYiOffline + "]}]";
            xAxisCategories = "['二七区', '惠济区', '中牟', '新郑','荥阳','新密','登封','巩义']";
        }

      

       

       
    }
}